package com.iflytek.erp.book.mapper;

import com.iflytek.erp.book.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    List<Book> findAll();

    Book findById(@Param("id") Integer id);

    int insert(Book book);

    int update(Book book);

    int delete(Integer id);
}
